package com.cg.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.JdbcType;


/**
 * @author 作者
 * @since 2022-05-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "public.t_order", autoResultMap = true)
public class OrderPO {

    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    @TableField(value = "order_code", jdbcType = JdbcType.VARCHAR)
    private String orderCode;

    /**
     * 订单数量
     */
    @TableField(value = "order_num", jdbcType = JdbcType.INTEGER)
    private Integer orderNum;

    /*
     * 用户id
     */
    @TableField(value = "user_id", jdbcType = JdbcType.INTEGER)
    private Integer userId;


}
